package com.ushine.design.design.c_behavioral_pattern.a_chain_of_responsibility.a_practice;

/**
 * 具体处理者
 *
 * @author yls
 */
public class ConcreteHandlerC extends Handler {

    @Override
    public void handleRequest(String request) {
        if (true) {//如果满足条件
            //处理请求
            System.out.println("C成功处理该请求。");
        } else {
            this.successor.handleRequest(request);
        }

    }
}
